package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureBatchTask;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 批次任务业务对象 agriculture_batch_task
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureBatchTask.class, reverseConvertGenerate = false)
public class AgricultureBatchTaskBo extends BaseEntity {

    /**
     * 任务ID
     */
    @NotNull(message = "任务ID不能为空", groups = { EditGroup.class })
    private Long taskId;

    /**
     * 批次ID
     */
    @NotNull(message = "批次ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long batchId;

    /**
     * 任务负责人
     */
    @NotNull(message = "任务负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskHead;

    /**
     * $column.columnComment
     */
    @NotBlank(message = "$column.columnComment不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskHeadName;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 计划开始日期
     */
    @NotBlank(message = "计划开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planStart;

    /**
     * 计划结束日期
     */
    @NotBlank(message = "计划结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String planFinish;

    /**
     * 实际开始日期
     */
    @NotBlank(message = "实际开始日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actualStart;

    /**
     * 实际结束日期
     */
    @NotBlank(message = "实际结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private String actualFinish;

    /**
     * 任务详情
     */
    @NotBlank(message = "任务详情不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskDetail;

    /**
     * 图片资料
     */
    @NotBlank(message = "图片资料不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskImages;

    /**
     * 视频资料
     */
    @NotBlank(message = "视频资料不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskVideos;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 0未分配 1已分配 2进行中 3已完成
     */
    @NotBlank(message = "0未分配 1已分配 2进行中 3已完成不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;


}
